<%--
  User: Integra
  Date: 03.03.2009
  Time: 2:37:22
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<html>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<f:view locale="#{localeManager.locale}">
    <f:loadBundle var="msgs" basename="messages"/>
    <head>
        <title><h:outputText value="Editing the contest"/></title>
        <link href="olga.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <h:form id="formEditContest">
            <%@include file="logoPanel.jspf"%>
            <%@include file="navigationPanel.jspf"%>
            <h1>Edit the contest</h1>
             <h:panelGrid columns="4">
            <h3><h:outputText value="#{msgs['contestName']}"></h:outputText> </h3>
            <h3><h:inputText id="name" value="#{editContest.contest.name}"></h:inputText> </h3>
             <h3><h:outputText value="#{msgs['contestStartdate']}"></h:outputText> </h3>
             <h3><h:inputText id="startdate" value="#{editContest.contest.startdate}">
                   <f:convertDateTime pattern="yyyy.MM.dd HH:mm:ss"/>
             </h:inputText>  </h3>
             <h3><h:outputText value="#{msgs['contestStopdate']}"></h:outputText> </h3>
             <h3><h:inputText id="stopdate" value="#{editContest.contest.stopdate }">
                      <f:convertDateTime pattern="yyyy.MM.dd HH:mm:ss"/>
             </h:inputText> </h3>
             <h3><h:outputText value="#{msgs['contestType']}"></h:outputText> </h3>
             <h3><h:inputText id="type" value="#{editContest.contest.type}"></h:inputText> </h3>
            </h:panelGrid>
             <h:commandButton value="Change" action="#{editContest.changeContest}"></h:commandButton>
        </h:form>
    </body>
</f:view>
</html>